/*
 * @Author: 张小平
 * @Date:   2025-05-01 
 * @Email:  qqshuqian@163.com 
 * @Copyright © 2024 aseyun. All rights reserved.
 */
const customEvent = {
  methods: {
    customEvent(e) {
      if (this.column?.customEvent) {
        const {
          customEventName
        } = this.column
        window.workFlow[customEventName].bind(
          this,
          e,
          this.viewFormData.options.column,
          this.viewFormData.modelData,
          this.viewFormData,
          {
            column: this.column,
            value: this.value
          }
        )()
      }
    }
  }
}

export default customEvent
